package com.book.service;

import com.book.model.entity.PointsRecords;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 积分记录表 服务类
 * </p>
 *
 * @author auto
 * @since 2025-04-02 06:38:55
 */
public interface PointsRecordsService extends IService<PointsRecords> {

    List<PointsRecords> getPointsRecordsListByUserId(Integer type,String userId);

    Integer userSignArrive(String userId);

    boolean checkSign(String userId);

    boolean buyBook(String userId, Long amount,String bookName);

    boolean sellBook(String userId, Long amount,String bookName);

    boolean sellerCancelBook(String userId, Long amount,String bookName);

    boolean buyerCancelBook(String userId, Long amount,String bookName);

    boolean pushPoints(PointsRecords dto);
}
